sudo apt-get -y update

sudo apt-get -y install xfce4

sudo apt-get -y install xrdp

echo xfce4-session >~/.xsession

sudo cat > "/etc/xrdp/startwm.sh" <<EOL
#!/bin/sh

if [ -r /etc/default/locale ]; then

. /etc/default/locale

export LANG LANGUAGE

fi

startxfce4

EOL

service xrdp restart

reboot
